<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

	protected function _initView()
	{
		// Initialize view
		$view = new Zend_View();
		$view->doctype('XHTML1_STRICT');
		$view->headMeta()->appendHttpEquiv('Content-Type','text/html; charset=utf-8');
		$view->headTitle()->setSeparator(' - ')->headTitle('Web Scaffolding');
		
		// Navigation
		$priNavContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'priNav');
    $priNavContainer = new Zend_Navigation($priNavContainerConfig);
    $view->navigation($priNavContainer);
		
    // Add it to the ViewRenderer
		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
      'ViewRenderer'
    );
    
    $viewRenderer->setView($view);
    // Return it, so that it can be stored by the bootstrap
    return $view;
	}
}

?>